package cn.jsu.oj.dispatchServer.satellite.config;

import io.netty.bootstrap.Bootstrap;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;

/**
 * 客户端配置
 *
 * @author shan
 * @date 2022/07/07
 */
@Slf4j
@Configuration
public class ClientConfig {
    
    @Autowired
    ExecutorService executorService;

    /**
     * 注册netty引导器
     *
     * @return {@link Bootstrap }
     */
    @Bean("bootstrap")
    Bootstrap initBootstrap() {
        Bootstrap bootstrap = new Bootstrap();
        log.info("bean: 引导器配置完成......");
        return bootstrap;
    }
}
